#include <QtGui>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
	QObject::connect(&a, SIGNAL(aboutToQuit()), &a, SLOT(closeAllWindows()));
	QTextCodec::setCodecForTr(QTextCodec::codecForName("CP1251"));

    MainWindow w;
    w.show();
    return a.exec();
}
